<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商品运费管理</title> <#include "/WEB-INF/content/module-index.html">
<script type="text/javascript">
$(function(){
	$("#search").click(function(){
		var id=$("#id").val();
		var freightCode=$("#freightCode").val();
		$("#grid").datagrid("reload",{"id":id,"freightCode":freightCode});		
	});	
	$("#clear").click(function(){
		$("#id").val("");
		$("#freightCode").val("");
	});
});
</script>
<style>
a.btn-border{
	border: 1px solid #ccc;
}
</style>
</head>
<body>
<body class="easyui-layout">
	<div region="center" style="padding: 5px; background:#eee;">
		<div id="toolbar">
			<label>运费ID:</label><input id="id"/>
			<label>运费编号:</label><input id="freightCode"/>
			<a id="search" class="easyui-linkbutton" icon="icon-search" style="border: 1px solid #ccc" plain="true">搜索</a>
			<a id="clear" class="easyui-linkbutton" icon="icon-no" style="border: 1px solid #ccc" plain="true">清空</a><br/>
			<@auth code="product:freight:new">
				<a id="new" class="easyui-linkbutton" onclick="javascript:add();" icon="icon-add" style="border: 1px solid #ccc" plain="true">新增</a>
			</@auth>
			<@auth code="product:freight:*:edit">
				<a id="edit" class="easyui-linkbutton" onclick="javascript:edit();" icon="icon-edit" style="border: 1px solid #ccc" plain="true">编辑</a>
			</@auth>
			<@auth code="sys:menu:*:delete"> 
				<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-remove" style="border: 1px solid #ccc" onclick="javascript:del()">删除</a>
			</@auth>
		</div>
		<table id="grid" class="easyui-datagrid" url="query" align="center" idField="id" rownumbers="true" striped="true" fitColumns="true" fit="true" pagination="true" singleSelect="true" toolbar="#toolbar">
			<thead>
				<tr>
					<th field="id" width="10">运费ID</th>
					<th field="freightCode" width="30">运费编号</th>
					<th field="freightDesc" width="100">运费险描述</th>
				</tr>
			</thead>
		</table>
	</div>
</body>
</body>

</html>